From: Wei Liu Date: Fri, 21 Sep 2018 15:54:48 +0000 (+0100) Subject: x86/mem_access: put p2m_{get/set}_suppress_ve under CONFIG_HVM X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~3252 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=940185b2f6f343251c2b83bd96e599398cea51ec;p=xen.git x86/mem_access: put p2m_{get/set}_suppress_ve under CONFIG_HVM They are used by HVM code only. Signed-off-by: Wei Liu Acked-by: Razvan Cojocaru --- diff --git a/xen/arch/x86/mm/mem_access.c b/xen/arch/x86/mm/mem_access.c index 2217bda4c5..826c35fc5c 100644 --- a/xen/arch/x86/mm/mem_access.c +++ b/xen/arch/x86/mm/mem_access.c @@ -501,6 +501,7 @@ void arch_p2m_set_access_required(struct domain *d, bool access_required) } } +#ifdef CONFIG_HVM /* * Set/clear the #VE suppress bit for a page. Only available on VMX. */ @@ -600,6 +601,7 @@ int p2m_get_suppress_ve(struct domain *d, gfn_t gfn, bool *suppress_ve, return 0; } +#endif /* * Local variables: